#include <iostream>
#include "arme.h"

using namespace std;


Arme::Arme() : m_nom("Epée rouillé"), m_pDegats(10), m_mDegats(7)
{
}

Arme::Arme(string nom, int pDegats, int mDegats) : m_nom(nom), m_pDegats(pDegats), m_mDegats(mDegats)
{
}


void Arme::changer(string nom, int pDegats, int mDegats)
{
    m_nom = nom;
    m_pDegats = pDegats;
    m_mDegats = mDegats;
}

int Arme::getPDegats()
{
    return m_pDegats;
}

int Arme::getMDegats()
{
    return m_mDegats;
}


void Arme::afficher()
{
    cout << "Arme : " << m_nom << " Degats Physique : " << m_pDegats << " Degat Magique:" << m_mDegats << endl;
}
